package tx;

import org.junit.Before;
import org.springframework.cglib.core.DebuggingClassWriter;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author jackcfan
 * @date 22/10/1
 */
public class BaseTest {
  public ClassPathXmlApplicationContext context;

  @Before
  public void init(){
    // 指定 CGLIB 将动态生成的代理类保存至指定的磁盘路径下
    System.setProperty(DebuggingClassWriter.DEBUG_LOCATION_PROPERTY, "C:\\data\\thinking-in-spring");
    context = new ClassPathXmlApplicationContext("spring.xml");
  }
}
